package cn.ylg.com.baisibudeijie.pro.base.presenter;

import android.content.Context;

import com.google.gson.Gson;

import cn.ylg.com.baisibudeijie.mvp.presenter.impl.MvpBasePresenter;


/**
 * Created by Dream on 16/5/28.
 */
public abstract class BasePresenter extends MvpBasePresenter {

    private Context context;
    private Gson gson;

    public BasePresenter(Context context){
        this.context = context;
        this.gson = new Gson();
    }

    public Context getContext() {
        return context;
    }

    public Gson getGson() {
        return gson;
    }

    public interface OnUIThreadListener<T>{
        public void onResult(T result);
    }
}
